<?php
/**
 * 验证是否不相等.
 * @param Model $model
 * @param array $attributes
 * @param string $field
 * @param string $cfield
 * @return boolean
 */
function FUnEqualToValidator($model, &$attributes, $field, $cfield)
{
	if (isset($attributes[$field]) && isset($attributes[$cfield]))
		return (strcmp($attributes[$field], $attributes[$cfield]) !== 0);
		
	return false;
} 
